TextToClipboard
TextToClipboard String$
 
Parameters:

    String$ = The String you wish to post to the cliboard
Returns: NONE
 

     TextToClipboard takes a PlayBASIC string and pastes it to the windows clipboard. It's the programming equivalent of Cut and Paste text in Windows Note Pad.



FACTS:


      * None



Mini Tutorial:


     This example posts the message "Hello World" to the Windows clipboard, it then reads it back in the next line and displays them.


  
  
; Inlcude the Clipboard library in this program
  #Include "ClipBoard"
  
  // Post the string to windows clipboard
  TextToClipboard("Hello World")
  
  // Get Whatever TExt Is on ClipBoard
  Print GetTextFromClipboard()
  
  // Display the screen & wait for a key press to end
  Sync
  WaitKey
  




This example would output.

  
  Hello World
  

 
Related Info: GetTextFromClipboard :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com